#ifndef __ARMOR_ATTITUDE_ALGORITHM_H__
#define __ARMOR_ATTITUDE_ALGORITHM_H__

#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;

class ArrorAttitudeAlgorithm
{
public:
	ArrorAttitudeAlgorithm();
	~ArrorAttitudeAlgorithm();//X:Yaw,Y:Pitch
	//测试时的实际距离
	int actualDist_;

	//计算出的实际焦距
	double focalLenth_;

	//角度距离解算
	double angleSover(RotatedRect arrorRect, double& yaw, double& pitch, int enemy_color);
private:
	//相机靶面尺寸的长与宽
	double inchPerPixWidth_;
	double inchPerPixHeight_;

	//实际灯条的长度
	double ledHeight_;
};

#endif

